/**
 * \file ServerArguments.java
 * \author Nicolaj Quottrup
 */
package com.rootbat.fleamarketapp.authorization;

import java.lang.reflect.Type;
import java.util.List;

import org.apache.http.NameValuePair;

import com.rootbat.fleamarketapp.utilities.IHttpToolkit.EHTTP_TYPE;

/**
* \brief Class to hold arguements for ServerService requests
*/
public class ServerArguments {
	// Hasmap key and broadcast name
	public String Key = null;
	// Website for RESTful service
	public String Host = null;
	// Website controller
	public String Controller = null;
	// Website action
	public String Action = null;
	// POST or GET method on server
	public EHTTP_TYPE Method = null;
	// POST/GET Variables
	public List<NameValuePair> NameValuePairs = null;
	// Respond type
	public Type ObjectType = null;
	
    /// <summary>
    /// ServerArguments - Constructer takes serverservice arguments as params and puts em into public variables for serverservice to pull out.
    /// </summary>
	public ServerArguments(String _key, String _host, String _controller, String _action, EHTTP_TYPE _method, List<NameValuePair> _nameValuePairs, Type type)
	{
		Key = _key;
		Host = _host;
		Controller = _controller;
		Action = _action;
		Method = _method;
		NameValuePairs = _nameValuePairs;
		ObjectType = type;
	}
}